import request from '@/utils/request'


// 新增
export function carouselList (data) {
    return request({
        url: '/carousel/list',
        method: 'post',
        data: data
    })
}


// 新增
export function addCarousel (data) {
    return request({
        url: '/carousel/addCarousel',
        method: 'post',
        data: data
    })
}


// 编辑
export function updateCarousel (data) {
    return request({
        url: '/carousel/updateCarousel',
        method: 'PUT',
        data: data
    })
}



// 删除
export function deleteCarousel (carouselId) {
    return request({
        url: `/carousel/deleteCarousel/${carouselId}`,
        method: 'delete'
    })
}

